'use strict';
const { Service } = require('egg');

class ArticleService extends Service {
  async create(params) {
    const { app } = this;

    try {
      const result = app.mysql.insert('tbl_usr', params);
      return result;
    } catch (error) {
      console.error(error);
      return null;
    }
  }
}

module.exports = ArticleService;
